﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000225 RID: 549
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueEnterCellCsReq : IMessage<ChessRogueEnterCellCsReq>, IMessage, IEquatable<ChessRogueEnterCellCsReq>, IDeepCloneable<ChessRogueEnterCellCsReq>, IBufferMessage
	{
		// Token: 0x1700072D RID: 1837
		// (get) Token: 0x0600188C RID: 6284 RVA: 0x0004615D File Offset: 0x0004435D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueEnterCellCsReq> Parser
		{
			get
			{
				return ChessRogueEnterCellCsReq._parser;
			}
		}

		// Token: 0x1700072E RID: 1838
		// (get) Token: 0x0600188D RID: 6285 RVA: 0x00046164 File Offset: 0x00044364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueEnterCellCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700072F RID: 1839
		// (get) Token: 0x0600188E RID: 6286 RVA: 0x00046176 File Offset: 0x00044376
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueEnterCellCsReq.Descriptor;
			}
		}

		// Token: 0x0600188F RID: 6287 RVA: 0x0004617D File Offset: 0x0004437D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellCsReq()
		{
		}

		// Token: 0x06001890 RID: 6288 RVA: 0x00046185 File Offset: 0x00044385
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellCsReq(ChessRogueEnterCellCsReq other) : this()
		{
			this.cellId_ = other.cellId_;
			this.selectMonsterId_ = other.selectMonsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001891 RID: 6289 RVA: 0x000461B6 File Offset: 0x000443B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellCsReq Clone()
		{
			return new ChessRogueEnterCellCsReq(this);
		}

		// Token: 0x17000730 RID: 1840
		// (get) Token: 0x06001892 RID: 6290 RVA: 0x000461BE File Offset: 0x000443BE
		// (set) Token: 0x06001893 RID: 6291 RVA: 0x000461C6 File Offset: 0x000443C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x17000731 RID: 1841
		// (get) Token: 0x06001894 RID: 6292 RVA: 0x000461CF File Offset: 0x000443CF
		// (set) Token: 0x06001895 RID: 6293 RVA: 0x000461D7 File Offset: 0x000443D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectMonsterId
		{
			get
			{
				return this.selectMonsterId_;
			}
			set
			{
				this.selectMonsterId_ = value;
			}
		}

		// Token: 0x06001896 RID: 6294 RVA: 0x000461E0 File Offset: 0x000443E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueEnterCellCsReq);
		}

		// Token: 0x06001897 RID: 6295 RVA: 0x000461EE File Offset: 0x000443EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueEnterCellCsReq other)
		{
			return other != null && (other == this || (this.CellId == other.CellId && this.SelectMonsterId == other.SelectMonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001898 RID: 6296 RVA: 0x0004622C File Offset: 0x0004442C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this.SelectMonsterId != 0U)
			{
				num ^= this.SelectMonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001899 RID: 6297 RVA: 0x00046284 File Offset: 0x00044484
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600189A RID: 6298 RVA: 0x0004628C File Offset: 0x0004448C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600189B RID: 6299 RVA: 0x00046298 File Offset: 0x00044498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CellId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CellId);
			}
			if (this.SelectMonsterId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.SelectMonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600189C RID: 6300 RVA: 0x000462F4 File Offset: 0x000444F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this.SelectMonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectMonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600189D RID: 6301 RVA: 0x0004634C File Offset: 0x0004454C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueEnterCellCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			if (other.SelectMonsterId != 0U)
			{
				this.SelectMonsterId = other.SelectMonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600189E RID: 6302 RVA: 0x0004639C File Offset: 0x0004459C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600189F RID: 6303 RVA: 0x000463A8 File Offset: 0x000445A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SelectMonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.CellId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000A40 RID: 2624
		private static readonly MessageParser<ChessRogueEnterCellCsReq> _parser = new MessageParser<ChessRogueEnterCellCsReq>(() => new ChessRogueEnterCellCsReq());

		// Token: 0x04000A41 RID: 2625
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A42 RID: 2626
		public const int CellIdFieldNumber = 3;

		// Token: 0x04000A43 RID: 2627
		private uint cellId_;

		// Token: 0x04000A44 RID: 2628
		public const int SelectMonsterIdFieldNumber = 7;

		// Token: 0x04000A45 RID: 2629
		private uint selectMonsterId_;
	}
}
